# @author:Wei Junjie
# @time:2024/6/11 14:31
# @file conftest.py
# --*--coding: utf-8 --*--
"""
1.conftest 为函数级时 优先级高于 setup_method,teardown_method
2.conftest 为类级时  优先级高于 setup_class,teardown_class
3.conftest seesion 级别时 优先级高于 setup_module,teardown_module
"""
import pytest
from common.config_util import clean_extract

@pytest.fixture(scope="package", autouse=True, name='日志操作')
def open_loging():
    print('打开日志')
    yield
    print('关闭日志')

@pytest.fixture(scope="package", autouse=True, name='清除提取的数据')
def clean_extract_data():
    print('清理提取数据函数已就绪')
    yield
    clean_extract()

